package com.gdyd.boot.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
@ApiModel("用户实体类")
public class User {
    @ApiModelProperty("用户标识id")
    private Integer id;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date birthday;
    @ApiModelProperty("性别")
    private String sex;
    @ApiModelProperty("地址")
    private String address;
}
